package org.jsola.hr.web;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.jsola.core.Page;
import org.jsola.core.Result;
import org.jsola.hr.dto.AttendPeopleMonthlyStatAddDTO;
import org.jsola.hr.dto.AttendPeopleMonthlyStatUpdateDTO;
import org.jsola.hr.dto.PunchStatusUpdateDTO;
import org.jsola.hr.query.AttendDailyPeriodQuery;
import org.jsola.hr.query.AttendPeopleDailyQuery;
import org.jsola.hr.query.AttendPeopleMonthlyStatQuery;
import org.jsola.hr.vo.AttendDailyPeriodVO;
import org.jsola.hr.vo.AttendPeopleDailyListVO;
import org.jsola.hr.vo.AttendPeopleMonthlyStatListVO;
import org.jsola.hr.vo.AttendPeopleMonthlyStatVO;

import java.util.List;

/**
 * @author zhr
 */
@Api(tags = "hr-打卡人员月统计")
public interface IAttendPeopleMonthlyStatControllerAPI {

    /**
     * 新增打卡人员月统计
     * @param attendPeopleMonthlyStatAddDTO 打卡人员月统计新增实体
     * @return 打卡人员月统计展示对象
     */
    @ApiOperation(value = "新增打卡人员月统计")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "attendPeopleMonthlyStatAddDTO", dataType = "AttendPeopleMonthlyStatAddDTO", value = "新增打卡人员月统计", paramType = "body")
    })
    Result<AttendPeopleMonthlyStatVO> save(AttendPeopleMonthlyStatAddDTO attendPeopleMonthlyStatAddDTO);


    /**
     * 修改打卡人员月统计
     * @param attendPeopleMonthlyStatUpdateDTO 打卡人员月统计
     * @return 更新数量
     */
    @ApiOperation(value = "修改打卡人员月统计")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "attendPeopleMonthlyStatUpdateDTO", dataType = "AttendPeopleMonthlyStatUpdateDTO", value = "修改打卡人员月统计", paramType = "body")
    })
    Result<Integer> update(AttendPeopleMonthlyStatUpdateDTO attendPeopleMonthlyStatUpdateDTO);


    /**
     * 删除单个打卡人员月统计，彻底删除
     * @param attendPeopleMonthlyStatId 打卡人员月统计id
     * @return 删除数量
     */
    @ApiOperation(value="删除单个打卡人员月统计，彻底删除")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "attendPeopleMonthlyStatId", dataType = "String", value = "打卡人员月统计id", paramType = "path")
    })
    Result<Integer> delete(String attendPeopleMonthlyStatId);


    /**
     * 批量删除打卡人员月统计，彻底删除
     * @param attendPeopleMonthlyStatIds 打卡人员月统计id集合
     * @return 删除数量
     */
    @ApiOperation(value = "批量删除打卡人员月统计，彻底删除")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "attendPeopleMonthlyStatIds", dataType = "String[]", value = "打卡人员月统计id数组", paramType = "body" ,allowMultiple = true)
    })
    Result<Integer> deleteBatch(String[] attendPeopleMonthlyStatIds);


    /**
     * 根据打卡人员月统计id查询打卡人员月统计详情
     * @param attendPeopleMonthlyStatId 打卡人员月统计id
     * @return 打卡人员月统计详情
     */
    @ApiOperation(value="根据打卡人员月统计id查询打卡人员月统计详情")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "attendPeopleMonthlyStatId", dataType = "String", value = "打卡人员月统计id", paramType = "path")
    })
    Result<AttendPeopleMonthlyStatVO> findById(String attendPeopleMonthlyStatId);


    /**
     * 查询打卡人员月统计
     * @param attendPeopleMonthlyStatQuery 打卡人员月统计查询参数
     * @return page
     */
    @ApiOperation(value="查询打卡人员月统计")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "attendPeopleMonthlyStatQuery", dataType = "AttendPeopleMonthlyStatQuery", value = "打卡人员月统计查询参数", paramType = "query")
    })
    Result<List<AttendPeopleMonthlyStatListVO>> listAll(AttendPeopleMonthlyStatQuery attendPeopleMonthlyStatQuery);


     /**
     * 分页查询打卡人员月统计
     * @param attendPeopleMonthlyStatQuery 打卡人员月统计查询参数
     * @return page
     */
    @ApiOperation(value="分页查询打卡人员月统计")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "attendPeopleMonthlyStatQuery", dataType = "AttendPeopleMonthlyStatQuery", value = "打卡人员月统计查询参数", paramType = "query")
    })
    Result<Page<AttendPeopleMonthlyStatListVO>> page(AttendPeopleMonthlyStatQuery attendPeopleMonthlyStatQuery);

    /**
     * 打卡人员月详情
     *
     * @param attendPeopleDailyQuery 月详情查询参数
     * @return
     */
    @ApiOperation(value="打卡人员月详情")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "attendPeopleDailyQuery", dataType = "AttendPeopleDailyQuery", value = "打卡人员月详情查询参数", paramType = "query")
    })
    Result<List<AttendPeopleDailyListVO>> monthlyDetail(AttendPeopleDailyQuery attendPeopleDailyQuery);

    /**
     * 修改打卡状态
     *
     * @param punchStatusUpdateDTO 修改打卡状态
     * @return
     */
    @ApiOperation(value = "修改打卡状态")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "punchStatusUpdateDTO", dataType = "PunchStatusUpdateDTO", value = "修改打卡状态组", paramType = "body")
    })
    Result<Integer> updatePunchStatus(PunchStatusUpdateDTO punchStatusUpdateDTO);

    /**
     * 打卡详情
     *
     * @param attendDailyPeriodQuery
     * @return
     */
    @ApiOperation(value="打卡详情")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "attendDailyPeriodQuery", dataType = "AttendDailyPeriodQuery", value = "打卡详情", paramType = "query")
    })
    Result<List<AttendDailyPeriodVO>> attendDailyPeriodOfMonth(AttendDailyPeriodQuery attendDailyPeriodQuery);
}

